CFLAGS += -Wall -Werror -I../../include -fpic -D_GNU_SOURCE -D_UNET_SERVER -g
LDFLAGS += -lpcap -lpthread

all: unet

unet: main.o loop.o pcap.o device.o ether.o arp.o ip.o ipc.o port.o client.o routes.o icmp.o checksum.o
	$(CC) $(LDFLAGS) $^ -o $@

clean:
	rm -f unet *.o *~
